package com.bub.pay.core.dao;


import com.bub.pay.core.base.BaseDao;
import com.bub.pay.core.entity.domain.SysRole;
import com.bub.pay.core.entity.dto.merchant.MerchantRoleSelectDTO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <br>
 * <b>功能：</b>SysRoleDao<br>
 *
 * @author Leo
 * @version 1.0
 * @date ${date}
 */
public interface SysRoleDao extends BaseDao<SysRole> {
    List<SysRole> queryRoleByUserId(@Param("userId") Long userId, @Param("userType") int userType);

    List<String> queryPermByRoleId(@Param("roleId") Long roleId, @Param("userType") int userType);

    List<SysRole> selectRole(MerchantRoleSelectDTO dto);

    List<SysRole> allRoles();

}
